package com.wzh.aop.operatelog.service;

import com.wzh.aop.operatelog.annotation.OperateLog;
import com.wzh.aop.operatelog.constant.OperateModule;
import com.wzh.aop.operatelog.constant.OperateType;
import org.springframework.stereotype.Service;

import java.io.PrintStream;

/**
 * @Author zh wang
 * @Create 2025/7/24 10:26
 */
@Service
public class BusinessService {
    @OperateLog(operateModule = OperateModule.VARIATE, operateType = OperateType.CREATE, operateDesc = "VARIATE CREATE")
    public void doBusiness(String param1, String param2){
        System.out.printf("执行业务方法 ，String param1=%s，String param2=%s%n", param1, param2);
    }

    @OperateLog(operateModule = OperateModule.TEMPLATE, operateType = OperateType.UPDATE, operateDesc = "TEMPLATE UPDATE")
    public void doBusiness(Integer param1, Integer param2){
        System.out.printf("执行业务方法 ，Integer param1=%s，Integer param2=%s%n", param1, param2);
    }
}
